package com.yzg;

import java.util.concurrent.locks.LockSupport;

/**
 * @author misterWei
 * @create 2020年04月27号:23点10分
 * @mailbox forcontinue@163.com
 */
public class ParkMonitor {
static final Object lock = new Object();
    public static void main(String[] args) throws InterruptedException {

        new Thread(()->{
            synchronized (lock){
                LockSupport.park();
            }
        }).start();
        Thread.sleep(3000);
        synchronized (lock){
            System.out.println(1);
        }

    }
}
